package com.technology.education.data.model

/**
 * 学生时长记录
 */
data class DurationRecordModel(
    val list: List<Record>,
    val pageNo: Int,
    val pageSize: Int,
    val total: Int
)

/**
 * 时长记录
 * billPointType	账单类型 0被邀请人充值 1被邀请人辅导 2兑换时长 3兑换现金 4兑换商品 5兑换现金失败退还
 * relateIds	提现订单ID或积分订单ID
 */
data class Record(
    val billDurationType: String,
    val createDate: String,
    val id: String,
    val title: String,
    val value: Int,
    val billPointType: String,
    val relateIds: String
) {
    val valueString: String get() = if (billDurationType == "2") "+$value" else "$value"

    /**
     * 是否可以跳转到详情
     */
    val haveDetail: Boolean get() = billPointType == "3" || billPointType == "4" //|| billDurationType=="6"

}